<template>
  <div>
    <!-- 声明式路由 -->
    <router-link :to="{name: 'home'}">首页</router-link>&nbsp;
    <router-link :to="{name: 'category'}">分类</router-link>&nbsp;
    <router-link :to="{name: 'order'}">订单</router-link>&nbsp;
    <router-link :to="{name: 'my'}">我的</router-link>
    <!-- 路由视图 -->
    <div>
      <router-view />
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style>

</style>
